extends ../layout

block content 
	nav.off-canvas-navigation.clearfix
		ul
			li.menu-item
				a.menu-button(href='#menu') 左侧栏
			li.sidebar-item
				a.sidebar-button(href='#sidebar') 菜单
	nav#menu(role='navigation')
		.navwarper
			ul.cate-ul
				li 
					a(href="/")
						.nav-mark
						| 首页
	// Main Content
	section(role='main')
		//- h1 最新招聘信息
		.mainwarper

			ul.joblist-ul
				.jobfilter
					h2(style="text-align:center;margin:0px;") 我发布的招聘信息
				if jobs.length == 0
					li
						h2 你目前还没有发布过招聘信息
				else
					each job in jobs 
						li
							a(href="/job/#{job._id}", target="_blank")
								h2=job.title
							a.btn-grey.btn-sm(href="/job/delete/#{job._id}" style="margin-right:20px;") 删除
							a.btn-cyan.btn-sm(href="/job/edit/#{job._id}") 编辑
							if job.applicants && job.applicants.length !== 0
								each applicant in job.applicants
									ul.joblist-detail.applied_users
										li
											span=applicant.username
										li Email:
											span=applicant.email
										li 手机:
											span=applicant.phone

	// Aside Right
	section#sidebar(role='complementary')
		.right-sidebar
			.sidebar-header
				span 这里放点额外的功能
			p -
		.right-sidebar
			.sidebar-header
				span 这里放点额外的功能
			p -